package com.kyrioscraft.cloud.security.securitymoblie.oauth;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerTokenServicesConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Tiangel
 * @date 2018-3-26
 **/
//@Configuration
//@Slf4j
////@AutoConfigureBefore(ResourceServerTokenServicesConfiguration.class)
//public class UserPrincipalExtractorConfig {
//
//    @Bean
//    public UserPrincipalExtractor userPrincipalExtractor(){
//        log.info("init principal ......");
//        return new UserPrincipalExtractor();
//    }
//}
